<script lang="ts">
let height = "50px";
// #ifdef MP-WEIXIN
const system = uni.getMenuButtonBoundingClientRect();
height = system.top + 40 + 8 + "px";
const processHeight = system.top + 40 + 8 + 31 + "px"; // 有进度条的页面top
// #endif

export default {
  globalData: {
    pageTop: height,
    pageProcessTop: processHeight,
    audioManager: AudioManager.getInstance(),
  },
};
</script>

<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { AudioManager } from "@/utils/AudioManager";
import { getAnyApp } from '@/common/hooks';

onLaunch(async () => getAnyApp());

onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});
</script>

<style lang="scss">
@import "./uni.scss";
</style>
